import request from '@/utils/request'

export function pageInfo(params) {
    return request({
      url: '/product/page',
      method: 'get',
      params
    })
  }

  export function pageInfo2(params) {
    return request({
      url: '/inventory/page',
      method: 'get',
      params
    })
  }

export function addProduct(data) {
  return request({
    url: '/product/add',
    method: 'post',
    data
  })
}

export function deleteById(params) {
  return request({
    url: '/product/delete',
    method: 'get',
    params
  })
}

export function getById(params) {
  return request({
    url: '/product/getById',
    method: 'get',
    params
  })
}

export function updateBuilding(data) {
  return request({
    url: '/product/update',
    method: 'post',
    data
  })
}

export function delteBatch(data) {
    return request({
      url: '/product/deleteBatch',
      method: 'post',
      data
    })
  }

  // export function exportExcel(params) {
  //   return request({
  //     url: '/product/export',
  //     method: 'get',
  //     params
  //   })
  // }